{extends file="../global.html"}
{block name=body}
{if $error}
<p style="color:red">{$error}</p>
{else}
{/if}
 

<form class="layui-form"  method="post" enctype="multipart/form-data">
  <div class="layui-form-item">
    <label class="layui-form-label">轮播地址</label>
    <div class="layui-input-block">
      <input type="text" name="carousel_url" required id="test" lay-verify="required" placeholder="请输入轮播地址" autocomplete="off" class="layui-input typename"><span id="span"></span>
    </div>
  </div>
  <div class="layui-form-item">
   <label class="layui-form-label">轮播图片</label>　　　　　　　　　　　　　　　　　　　　　　　　

  <input type="file" name="file" id="imgPicker">
  <img id="preview" width="100"/>
  </div>
  <div class="layui-form-item">
      <label class="layui-form-label">是否参与轮播</label>
      <div class="layui-input-block">
        <select name="carousel_state" lay-verify="required">
            <option value="1">显示</option>
            <option value="0">隐藏</option>
       </select>
      </div>
    </div>
  <!-- <input type="hidden" name="" value="" class=""> -->
<!-- <input type="hidden" name="type_pinyin"/> -->

  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" id="btn" lay-submit lay-filter="formDemo" >立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>

<label><input type="radio" name="pinyin_type" value="1"/ checked style="display: none;"></label>
<div id="result"></div>
 




<script>

pic();


</script>



{/block}